﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using gametest.DxAPI;

namespace gametest.sprites
{
    public class Background: sprite
    {
        private DxImageObject imageBackGround = null;

        public Background(DxInitGraphics g)
            : base(g)
        {
            imageBackGround = new DxImageObject("Images\\background1.jpg", BitmapType.SOLID, -1, graphics.DDDevice);

        }

        override public void Draw()
        {
            imageBackGround.DrawBitmap(graphics.RenderSurface);
         //   throw new NotImplementedException();
        }

        override public void Restore(DxInitGraphics g)
        {
            graphics = g;
            imageBackGround.RestoreSurface();
        //    throw new NotImplementedException();
        }
    }
}
